// calendar.js 日历
import services from '../../services/services.js'

class Calendar{
   // 证书颁发日期列表
   rewardCardDateList(data, isLoading = true) {
     return services.ajax({
       url: '/v1/auth/rewardCardDateList',
       data,
       method: 'POST',
       isLoading
     })
   }
   // 查询当天参加的打卡活动列表
   momentCardList(data, isLoading = false) {
     return services.ajax({
       url: '/v1/moment/cardList',
       data,
       method: 'POST',
       isLoading
     })
   }
   // 获取证书
   getCetificate(data, isLoading = false) {
     return services.ajax({
       url: '/v1/attendance/certificate',
       data,
       method: 'POST',
       isLoading
     })
   }
   // 是否能打卡
   canPunch(data, isLoading = false) {
     return services.ajax({
       url: '/v1/attendance/isInMomentTimes',
       data,
       method: 'POST',
       isLoading
     })
   }
}

module.exports = new Calendar()